
<%@ page import="com.greyfit.security.GreyFitUser" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'greyFitUser.label', default: 'GreyFitUser')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-greyFitUser" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-greyFitUser" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list greyFitUser">
			
				<g:if test="${greyFitUserInstance?.username}">
				<li class="fieldcontain">
					<span id="username-label" class="property-label"><g:message code="greyFitUser.username.label" default="Username" /></span>
					
						<span class="property-value" aria-labelledby="username-label"><g:fieldValue bean="${greyFitUserInstance}" field="username"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.password}">
				<li class="fieldcontain">
					<span id="password-label" class="property-label"><g:message code="greyFitUser.password.label" default="Password" /></span>
					
						<span class="property-value" aria-labelledby="password-label"><g:fieldValue bean="${greyFitUserInstance}" field="password"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.accountExpired}">
				<li class="fieldcontain">
					<span id="accountExpired-label" class="property-label"><g:message code="greyFitUser.accountExpired.label" default="Account Expired" /></span>
					
						<span class="property-value" aria-labelledby="accountExpired-label"><g:formatBoolean boolean="${greyFitUserInstance?.accountExpired}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.accountLocked}">
				<li class="fieldcontain">
					<span id="accountLocked-label" class="property-label"><g:message code="greyFitUser.accountLocked.label" default="Account Locked" /></span>
					
						<span class="property-value" aria-labelledby="accountLocked-label"><g:formatBoolean boolean="${greyFitUserInstance?.accountLocked}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.dateCreated}">
				<li class="fieldcontain">
					<span id="dateCreated-label" class="property-label"><g:message code="greyFitUser.dateCreated.label" default="Date Created" /></span>
					
						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${greyFitUserInstance?.dateCreated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.enabled}">
				<li class="fieldcontain">
					<span id="enabled-label" class="property-label"><g:message code="greyFitUser.enabled.label" default="Enabled" /></span>
					
						<span class="property-value" aria-labelledby="enabled-label"><g:formatBoolean boolean="${greyFitUserInstance?.enabled}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.firstName}">
				<li class="fieldcontain">
					<span id="firstName-label" class="property-label"><g:message code="greyFitUser.firstName.label" default="First Name" /></span>
					
						<span class="property-value" aria-labelledby="firstName-label"><g:fieldValue bean="${greyFitUserInstance}" field="firstName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.lastName}">
				<li class="fieldcontain">
					<span id="lastName-label" class="property-label"><g:message code="greyFitUser.lastName.label" default="Last Name" /></span>
					
						<span class="property-value" aria-labelledby="lastName-label"><g:fieldValue bean="${greyFitUserInstance}" field="lastName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.lastUpdated}">
				<li class="fieldcontain">
					<span id="lastUpdated-label" class="property-label"><g:message code="greyFitUser.lastUpdated.label" default="Last Updated" /></span>
					
						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${greyFitUserInstance?.lastUpdated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.passwordExpired}">
				<li class="fieldcontain">
					<span id="passwordExpired-label" class="property-label"><g:message code="greyFitUser.passwordExpired.label" default="Password Expired" /></span>
					
						<span class="property-value" aria-labelledby="passwordExpired-label"><g:formatBoolean boolean="${greyFitUserInstance?.passwordExpired}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${greyFitUserInstance?.userPrograms}">
				<li class="fieldcontain">
					<span id="userPrograms-label" class="property-label"><g:message code="greyFitUser.userPrograms.label" default="User Programs" /></span>
					
						<g:each in="${greyFitUserInstance.userPrograms}" var="u">
						<span class="property-value" aria-labelledby="userPrograms-label"><g:link controller="userProgram" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${greyFitUserInstance?.id}" />
					<g:link class="edit" action="edit" id="${greyFitUserInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
